package com.niit.onlinemusicserver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.niit.onlinemusicserver.model.domain.Recommend;

public interface RecommendMapper extends BaseMapper<Recommend> {

    /**
     * @Description: 根据用户ID删除推荐数据
     * @param: userId 用户ID
     **/
    void deleteByUserId(Integer userId);

    /**
     * @Description: 批量插入推荐数据
     * @param: userId 用户ID
     * @param: songIds 歌曲ID数组
     **/
    void batchInsert(Integer userId, Integer[] songIds);
}
